import request from '@/utils/request'

// 查询产品工艺列表
export function listProductTech(query) {
  return request({
    url: '/production/productTech/list',
    method: 'get',
    params: query
  })
}

// 查询产品工艺详细
export function getProductTech(smesProductTechNo) {
  return request({
    url: '/production/productTech/' + smesProductTechNo,
    method: 'get'
  })
}

// 新增产品工艺
export function addProductTech(data) {
  return request({
    url: '/production/productTech',
    method: 'post',
    data: data
  })
}

// 修改产品工艺
export function updateProductTech(data) {
  return request({
    url: '/production/productTech',
    method: 'put',
    data: data
  })
}

// 删除产品工艺
export function delProductTech(smesProductTechNo) {
  return request({
    url: '/production/productTech/' + smesProductTechNo,
    method: 'delete'
  })
}

// 导出产品工艺
export function exportProductTech(query) {
  return request({
    url: '/production/productTech/export',
    method: 'get',
    params: query
  })
}